package com.ruoyi.resume.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.resume.mapper.BoleResumeEducationMapper;
import com.ruoyi.resume.domain.BoleResumeEducation;
import com.ruoyi.resume.service.IBoleResumeEducationService;

/**
 * 教育经历Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-01
 */
@Service
public class BoleResumeEducationServiceImpl implements IBoleResumeEducationService 
{
    @Autowired
    private BoleResumeEducationMapper boleResumeEducationMapper;

    /**
     * 查询教育经历
     * 
     * @param id 教育经历主键
     * @return 教育经历
     */
    @Override
    public BoleResumeEducation selectBoleResumeEducationById(Long id)
    {
        return boleResumeEducationMapper.selectBoleResumeEducationById(id);
    }

    /**
     * 查询教育经历列表
     * 
     * @param boleResumeEducation 教育经历
     * @return 教育经历
     */
    @Override
    public List<BoleResumeEducation> selectBoleResumeEducationList(BoleResumeEducation boleResumeEducation)
    {
        return boleResumeEducationMapper.selectBoleResumeEducationList(boleResumeEducation);
    }

    /**
     * 新增教育经历
     * 
     * @param boleResumeEducation 教育经历
     * @return 结果
     */
    @Override
    public int insertBoleResumeEducation(BoleResumeEducation boleResumeEducation)
    {
        return boleResumeEducationMapper.insertBoleResumeEducation(boleResumeEducation);
    }

    /**
     * 修改教育经历
     * 
     * @param boleResumeEducation 教育经历
     * @return 结果
     */
    @Override
    public int updateBoleResumeEducation(BoleResumeEducation boleResumeEducation)
    {
        return boleResumeEducationMapper.updateBoleResumeEducation(boleResumeEducation);
    }

    /**
     * 批量删除教育经历
     * 
     * @param ids 需要删除的教育经历主键
     * @return 结果
     */
    @Override
    public int deleteBoleResumeEducationByIds(Long[] ids)
    {
        return boleResumeEducationMapper.deleteBoleResumeEducationByIds(ids);
    }

    /**
     * 删除教育经历信息
     * 
     * @param id 教育经历主键
     * @return 结果
     */
    @Override
    public int deleteBoleResumeEducationById(Long id)
    {
        return boleResumeEducationMapper.deleteBoleResumeEducationById(id);
    }
}
